package com.rui.sideup.test.socket;

/**
 * @author ZhangRui
 * @date 2023/03/31 17:34
 **/
public class MainServer {

    public static void main(String[] args) throws InterruptedException {
        ServerManager.getInstance().start(700);

        while (true) {
            ServerManager.getInstance().sendMessageToAll("测试信息1".getBytes());
            Thread.sleep(3000);

            System.out.println("发送消息");
        }
    }
}
